package com.ruoyi.pingjiao.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.Type;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 学生管理对象 student
 * 
 * @author 胡浩鹏
 * @date 2022-10-15
 */
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生id */
    private Long studentId;

    /** 学号 */
    @Excel(name = "学号")
    private String studentNo;

    /** 姓名 */
    @Excel(name = "姓名")
    private String realName;

    /** 性别 */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String gender;

    /** 学院 */
    //@Excel(name = "学院")
    private Long deptId;

    /** 班级 */
   // @Excel(name = "班级")
    private Long meataclassId;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 状态 */
    private String status;

    /** 是否删除 */
    private String delFlag;

    /** $column.columnComment */
    private Long userId;

    @Excels({
            @Excel(name = "班级名称", targetAttr = "metaclassName", type = Type.EXPORT),
            @Excel(name = "学院名称", targetAttr = "dept.deptName", type = Type.EXPORT)
    })
    private Metaclass metaclass;

    public String getMetaclassName() {
        return metaclassName;
    }

    public void setMetaclassName(String metaclassName) {
        this.metaclassName = metaclassName;
    }

    @Excel(name = "班级名称")
    private String metaclassName;

    private SysUser sysUser;

    private List<Courseclass> courseclassList;

    private List<Teacher> teacherList;

    private CourseclassMetaclass courseclassMetaclass;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setStudentNo(String studentNo) 
    {
        this.studentNo = studentNo;
    }

    public String getStudentNo() 
    {
        return studentNo;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setMeataclassId(Long meataclassId) 
    {
        this.meataclassId = meataclassId;
    }

    public Long getMeataclassId() 
    {
        return meataclassId;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Metaclass getMetaclass() {
        return metaclass;
    }

    public void setMetaclass(Metaclass metaclass) {
        this.metaclass = metaclass;
    }

    public List<Courseclass> getCourseclassList() {
        return courseclassList;
    }

    public void setCourseclassList(List<Courseclass> courseclassList) {
        this.courseclassList = courseclassList;
    }

    public List<Teacher> getTeacherList() {
        return teacherList;
    }

    public void setTeacherList(List<Teacher> teacherList) {
        this.teacherList = teacherList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("studentNo", getStudentNo())
            .append("realName", getRealName())
            .append("gender", getGender())
            .append("meataclassId", getMeataclassId())
            .append("grade", getGrade())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .toString();
    }

    public CourseclassMetaclass getCourseclassMetaclass() {
        return courseclassMetaclass;
    }

    public void setCourseclassMetaclass(CourseclassMetaclass courseclassMetaclass) {
        this.courseclassMetaclass = courseclassMetaclass;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }
}
